package com.lr.server.demo3;

import java.util.HashMap;
import java.util.Map;

/*
 * Servlet上下文(工厂模式)
 */
public class ServletContext {

	private Map<String,String> mapping;
	
	//一个servlet有多个mapping？？？？
	//存对象会消耗大量内存,存包名+类名
	private Map<String,String> servlet;
	
	public ServletContext(){
		mapping = new HashMap<String,String>();
		servlet = new HashMap<String,String>();
	}

	public Map<String, String> getMapping() {
		return mapping;
	}

	public void setMapping(Map<String, String> mapping) {
		this.mapping = mapping;
	}

	public Map<String, String> getServlet() {
		return servlet;
	}

	public void setServlet(Map<String, String> servlet) {
		this.servlet = servlet;
	}
	
	
}
